package com.hbnu.Service;

import com.hbnu.Pojo.PageModel;
import com.hbnu.Pojo.User;

import java.util.List;

public interface UserService {
    User findUserByStuCodeAdnPassword(String stuCode, String password);

    List<User> findAllManager();

    List<User> findAllManager(String searchType, String keyword);

    void savaManager(User user, String[] dormId);

    User findById(Integer i);

    void updateManager(User user, String[] dormId);

    void updateManager(User user);

    List<User> findStudent(String dormId, String searchType, String keyword, User user, PageModel pageModel);

    Integer findTotalNum(String dormId, String searchType, String keyword, User user);

    User findByStuCode(String stuCode);

    void updateStudent(User studentUpdate);

    void saveStudent(User user);

    String findManagerStuCodeMax();

    User findByUserIdAndManager(int id, User user);
}



